<? if(!defined('IN_MDL')) exit('Access Denied');?>
<? include $this->gettpl('header');?> 
 <table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td bgcolor="#e6e6e6"><table width="920" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td width="200" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="40"><img src="<?=APPPUBLIC?>Images/Public/Search_Title.gif" width="127" height="20" /></td>
          </tr>
          <tr>
            <td height="26" valign="top"><img src="<?=APPPUBLIC?>Images/Categories/Brands.gif" width="117" height="15" /></td>
          </tr>
          <? if($brand) { ?>

			<tr>
            <td><? echo $brand_list[$brand]['brand_name']?>&nbsp;<a  href="<? goods_url(array('brand'=>'null'))?>" ><img src=<?=APPPUBLIC?>Images/Public/Remove.gif border=0></a></td>
            </tr>
			 <tr>
            <td><a href="<? goods_url(array('brand'=>'-1'))?>" class="Categories_Menu_a"><strong><font color="#444444">更多品牌...</font></strong></a></td>
          </tr> 

		  <? } else { ?>
		  <? foreach((array)$brand_list as $key => $val) {?>
            <tr>
			            <td><a href="<? goods_url(array('brand'=>$val['brand_id'] ) )?>" class="Categories_Menu_a" title="<?=$val['brand_name_zn']?>"><?=$val['brand_name']?></a></td>

             
            </tr>
			<?}?>	
		  <? } ?>
         
          <tr>
            <td height="10"></td>
          </tr>
          <tr>
            <td height="25" valign="top"><img src="<?=APPPUBLIC?>Images/Categories/Categories.gif" width="135" height="15" /></td>
          </tr>
          <tr>
            <td height="22" class="Categories_Menu"><a href="#" class="Categories_Menu_a"><strong><font color="#444444">全部商品</font></strong></a></td>
          </tr>
          <? foreach((array)$cat_list as $key => $val) {?>
            <tr>
            <td><?=$val['level_space']?><? if($val['level']>0) { ?><img src="<?=APPPUBLIC?>Images/joinbottom.gif"><? } ?><a href="<? goods_url(array('cat'=>$val['cat_id']),false,'Goods')?>" class="Categories_Menu_a"><?=$val['cat_name']?></a></td>
            </tr>
			<?}?>	
          <tr>
            <td height="20"></td>
            </tr>
            
          <tr>
            <td height="10"></td>
          </tr>
        </table></td>
        <td width="720" valign="top" bgcolor="#FFFFFF"><table width="700" border="0" align="center" cellpadding="0" cellspacing="0">
         
          <tr>
            <td height="1" colspan="2" bgcolor="#e6e6e6"></td>
          </tr>
          <tr>
            <td width="430" height="40" bgcolor="#f6f6f6">
            <table border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="*"> 
				<?=$nav_url?>
				</td>
                <td width="25" align="right"></td>
              </tr>
            </table></td>            
            <td width="264" height="40" align="right" bgcolor="#f6f6f6"><span class="Title"><? if($keyword) { ?>您查询的关键字是：<?=$keyword?></span>&nbsp;&nbsp;&nbsp;&nbsp;<? } ?></td>
          </tr>
          <? if($goods_list) { ?>
          <tr>
            <td width="50%" height="30" class="line_L_1">排序：<?=$set_orderby?></td>
            <td width="50%" height="30" align="right" class="line_L_1"><a href="<? goods_url(array('psize'=>'0'))?>" class="Categories_Menu_a">显示全部</a> | 每页显示：<?=$set_psize?></td>
            </tr>
        </table>
          <table width="700" align="center" cellpadding="0" cellspacing="0">
          <tr><td align="center">
          
           <? foreach((array)$goods_list as $key => $val) {?>
		   
			 <? include $this->gettpl('goods_show');?>
            
			<?}?>	
          
          </td></tr>
          </table>

		  <?=$multipage?> 
          <? } else { ?>  
   		<? include $this->gettpl('nogoods');?>
  	<? } ?>
          </td>
        </tr>
       
    </table></td>
  </tr>
</table>

<? include $this->gettpl('footer');?>